#Boa:Frame:FrameProduct

import wx

import PanelProduct

def create(parent):
    return FrameProduct(parent)

[wxID_FRAMEPRODUCT] = [wx.NewId() for _init_ctrls in range(1)]

class FrameProduct(wx.Frame):
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Frame.__init__(self, id=wxID_FRAMEPRODUCT, name=u'FrameProduct',
              parent=prnt, pos=wx.Point(0, 120), size=wx.Size(1280, 650),
              style=wx.DEFAULT_FRAME_STYLE, title=u'\u4ea7\u54c1\u4fe1\u606f')
        self.SetClientSize(wx.Size(1272, 616))
        self.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD, False,
              u'\u6977\u4f53_GB2312'))
        self.Bind(wx.EVT_CLOSE, self.OnFrameProductClose)

    def __init__(self, parent):
        self._init_ctrls(parent)

        self.myInit()
        
    def myInit(self):
        self.panelPro = PanelProduct.PanelProduct(self, PanelProduct.TypeProAll, bSelect=False)
        self.panelPro.setViewTypeProAll(PanelProduct.TypeProAll)

    def OnFrameProductClose(self, event):
        self.Show(False)

